package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bean.User;
@Transactional
public interface UserService {

	int insertUser(User user);
	int updateUser(User user);
	int deleteUser(String name);
	List<User> selectUser(int pageSize,int pageIndex,String SearchSql);
	
	public User selectOne(String username, String password);
	public User selectById(Integer userid);

	public List<User> selectAllByid();
	
	public User selectByPrimaryKey(Integer id);
	public List<User> selectAllUser(Map<String, Object> map);
	public void insertSelective(User user);
	public void deleteById(Integer id);
	public void updateByPrimaryKeySelective(User user);
}
